package pkg0;

import co.paralleluniverse.fibers.Fiber;

public class Env {
    public static void main(String[] args) throws InterruptedException {
        for (int i = 0; i < 100; i++) {
            int finalI = i;
            new Fiber<String>(() -> {
                for (int j = 0; j < 10; j++) {
                    Thread.sleep(10);
                    System.out.println("This is thread " + finalI);
                }
            }).start();
        }
        Thread.sleep(10000);
    }
}
